import request from '@/utils/request'

// 查询制卡流水列表
export function listZkrecord(query) {
  return request({
    url: '/system/zkrecord/list',
    method: 'get',
    params: query
  })
}

// 查询制卡流水详细
export function getZkrecord(id) {
  return request({
    url: '/system/zkrecord/' + id,
    method: 'get'
  })
}

// 新增制卡流水
export function addZkrecord(data) {
  return request({
    url: '/system/zkrecord',
    method: 'post',
    data: data
  })
}

// 修改制卡流水
export function updateZkrecord(data) {
  return request({
    url: '/system/zkrecord',
    method: 'put',
    data: data
  })
}

// 删除制卡流水
export function delZkrecord(id) {
  return request({
    url: '/system/zkrecord/' + id,
    method: 'delete'
  })
}
